package day03;


import java.util.Scanner;

public class Demo {
	public static void pd(int maxScore,int minScore,double aveScore,int bujige) {
		Scanner sc = new Scanner(System.in);
		boolean flag = true;
		while(flag){
			print();
			System.out.println("请选择:");
			int n = sc.nextInt();
			switch (n) {
			case 1:
				System.out.println("最高分:"+maxScore);
				break;
			case 2:
				System.out.print("平均分"+aveScore);
				break;
			case 3:
				System.out.println("最低分:"+minScore);
				break;
			case 4:
				System.out.println("不及格人数"+bujige);
				break;
			case 5:
				System.out.println("退出");
				flag = false;
				break;
			case 6:
				System.out.println("继续输入成绩");
				ZuoYe dm = new ZuoYe();// new 作业的对象
				dm.main(null);
				break;
				
			default:
				System.out.println("您输入的有误！");
				break;
			}
		}
		sc.close();
		
		   
	}
	
	public static void print(){
		System.out.println("1.最高分");
		System.out.println("2.平均分");
		System.out.println("3.最低分");
		System.out.println("4.不及格人数");
		System.out.println("5.退出");
		System.out.println("6.继续输入成绩");
	}

	
	
}
